package com.producteev4j.model.json.task;

import com.producteev4j.model.response.BaseResponse;
import com.producteev4j.model.response.Label;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.annotate.JsonProperty;

/**
 * Created by IntelliJ IDEA.
 * User: jcarrey
 * Date: 22/05/11
 * Time: 18:51
 * To change this template use File | Settings | File Templates.
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class LabelImpl extends BaseResponse implements Label {

    @JsonProperty("id_label")
    private long idLabel;

    @JsonProperty("id_creator")
    private long idCreator;

    @JsonProperty("id_dashboard")
    private long idDashboard;

    @JsonProperty("title")
    private String title;

    @JsonProperty("color")
    private String color;

    @JsonProperty("type")
    private int type;

    @JsonProperty("x")
    private String x;

    @JsonProperty("y")
    private String y;

    @JsonProperty("order")
    private Integer order;

    @JsonProperty("time_create")
    private String timeCreate;


    @JsonProperty("time_lastchange")
    private String timeLastChange;

    @JsonProperty("from")
    private String from;

    @JsonProperty("deleted")
    private int deleted;

    @JsonProperty("order_position")
    private String orderPosition;


    public long getIdLabel() {
        return idLabel;
    }

    public void setIdLabel(long idLabel) {
        this.idLabel = idLabel;
    }

    public long getIdCreator() {
        return idCreator;
    }

    public void setIdCreator(long idCreator) {
        this.idCreator = idCreator;
    }

    public long getIdDashboard() {
        return idDashboard;
    }

    public void setIdDashboard(long idDashboard) {
        this.idDashboard = idDashboard;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getX() {
        return x;
    }

    public void setX(String x) {
        this.x = x;
    }

    public String getY() {
        return y;
    }

    public void setY(String y) {
        this.y = y;
    }

    public Integer getOrder() {
        return order;
    }

    public void setOrder(Integer order) {
        this.order = order;
    }

    public String getTimeCreate() {
        return timeCreate;
    }

    public void setTimeCreate(String timeCreate) {
        this.timeCreate = timeCreate;
    }

    public String getTimeLastChange() {
        return timeLastChange;
    }

    public void setTimeLastChange(String timeLastChange) {
        this.timeLastChange = timeLastChange;
    }

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public int getDeleted() {
        return deleted;
    }

    public void setDeleted(int deleted) {
        this.deleted = deleted;
    }

    public String getOrderPosition() {
        return orderPosition;
    }

    public void setOrderPosition(String orderPosition) {
        this.orderPosition = orderPosition;
    }

    @Override
    public String toString() {
        return new StringBuilder("LabelImpl{").append(
                "idLabel=").append(idLabel).append(
                ", idCreator=").append(idCreator).append(
                ", idDashboard=").append(idDashboard).append(
                ", title='").append(title).append('\'').append(
                ", color='").append(color).append('\'').append(
                ", type=").append(type).append(
                ", x='").append(x).append('\'').append(
                ", y='").append(y).append('\'').append(
                ", order=").append(order).append(
                ", timeCreate='").append(timeCreate).append('\'').append(
                ", timeLastChange='").append(timeLastChange).append('\'').append(
                ", from='").append(from).append('\'').append(
                ", deleted=").append(deleted).append(
                ", orderPosition='").append(orderPosition).append('\'').append(
                '}').toString();
    }
}
